It was added in commit
48fb16b570 for the lock screen, but that
hasn't been based on ModalDialog for a long time.
It doesn't appear that anything else ever used the parameter,
so just remove it.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
return this.dialogLayout.addButton(buttonInfo);
}
- _fadeOpen(onPrimary) {
- if (onPrimary)
- this._monitorConstraint.primary = true;
- else
- this._monitorConstraint.index = global.display.get_current_monitor();
+ _fadeOpen() {
+ this._monitorConstraint.index = global.display.get_current_monitor();
this._setState(State.OPENING);
() => (this._initialKeyFocus = null), this);
}
- open(timestamp, onPrimary) {
+ open(_timestamp) {
if (this.state === State.OPENED || this.state === State.OPENING)
return true;
if (!this.pushModal())
return false;
- this._fadeOpen(onPrimary);
+ this._fadeOpen();
return true;
}